isInLayout

open fun isInLayout(@NonNull view: View): Boolean(source)

Deprecated

Call isInLayout directly.

Returns whether the view hierarchy is currently undergoing a layout pass. This information is useful to avoid situations such as calling requestLayout during a layout pass.

Compatibility:

  • API <18: Always returns false

Return

whether the view hierarchy is currently undergoing a layout pass